package com.tianhui.consignortwofei.pattern.orderOprate.impl;

import android.content.Context;

import com.tianhui.consignortwofei.mvp.model.enty.OrderOperateInfo;
import com.tianhui.consignortwofei.pattern.orderOprate.IOrderOperate;
import com.tianhui.consignortwofei.widget.PaymentDetailDialog;

/**
 * @author fgs
 * @date 2020/9/24
 * @description 确认付款中的查看明细
 **/
public class PaymentDetailOperate implements IOrderOperate {
    private PaymentDetailDialog paymentDetailDialog;
    @Override
    public void orderOperate(Context context, OrderOperateInfo operateInfo) {
        if (paymentDetailDialog == null){
            paymentDetailDialog =  new PaymentDetailDialog(context, operateInfo.orderInfo);
        }
        paymentDetailDialog.show();
    }
}
